﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DotNetDream.Models
{
    public partial class BlogEntryComment
    {
        DotNetDreamEntities _db = new DotNetDreamEntities();
        public string OwnerName
        {
            get
            {
                BlogUser author = _db.BlogUsers.Find(OwnerId);
                return author.FirstName + " " + author.LastName;
            }
        }

        public string OwnerAvatarUrl
        {
            get
            {
                BlogUser author = _db.BlogUsers.Find(OwnerId);
                return author.Avatar;
            }
        }
    }
}